<?php
/**
 *  view: support/support_home.php
 */
?>

<h1><?php echo lang('support'); ?></h1>

<div id="support" class="support">

    <fieldset class="ui-widget-content ui-corner-all left_col" style='width: 300px;' >
        <legend class="ui-widget-content ui-corner-all"><?= lang('users') ?></legend>
        <!--<a href="javascript:void(null)" id="refresh_users" alt="<?= lang('refresh_users') ?>" ><img src="<?= base_url() ?>img/icons/Refresh.png" title="<?= lang('refresh_users') ?>" style="float: right;"/></a>-->
        <br/>
        <div id="support_users">
        <?php
        $this->load->view('support/users_list');
        ?>
        </div>
    </fieldset>


    <fieldset class="ui-widget-content ui-corner-all" style='width: 40%;'>
        <legend class="ui-widget-content ui-corner-all"><?= lang('messages') ?></legend>
        <a href="javascript:void(null)" id="refresh_messages" alt="<?= lang('refresh_messages') ?>" ><img src="<?= base_url() ?>img/icons/Refresh.png" title="<?= lang('refresh_messages') ?>" style="float: right;"/></a>
        <table id="support_messages" class='table_sorter table_pager dialog_table right_col' width='100%' cellpadding=3px cellspacing=0>
            <tbody >
                <?php
                $this->load->view('support/dialog_list');
                ?>
            </tbody>

        </table> 
        <div id="support_message_div">
            <form id="form-support-users" action="javascript:void(null)"  method="post">
            <label><?=lang('message')?>:</label>
            <textarea name="support_message" id="support_message" class="text txtarea ui-widget-content ui-corner-all" style="margin-top: 20px; width: 80%;"></textarea>     
            <br/>
            <div id="support_response" ></div>
            <br/>
            <label> &nbsp; </label>
             <input type="button" name="submit_support_message" id="submit_support_message" value="<?=lang('term_send')?>" class='right ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all' />
            </form>
        </div>
    </fieldset>      
</div>
<div id="dialog-user" class="hide" title="<?php echo lang('term_user'); ?>"></div>


